#ifndef __CALOGH__
#define __CALOGH__

#ifdef ANDROID
#include <android/log.h>
#define logprt(...) __android_log_print(ANDROID_LOG_ERROR, "caif", __VA_ARGS__)
#else
#define logprt(...) printf(__VA_ARGS__)
#endif

#define ERR_PUT(RET) if(RET != 0) logprt("### Error: %s, ret=%d\n", RET);
#endif
